﻿using System;
using System.Collections.Generic;
using System.Text;
using Gtk;

namespace GtkSharpTutorial
{
    class FilledWrappedLabel:Labels
    {
        public FilledWrappedLabel()
        {
            var frame = new Frame("Filled wrapped label");
            var label = new Label("This is an example of a line-wrapped, filled label.  " +
                  "It should be taking " +
                  "up the entire              width allocated to it.  " +
                  "Here is a sentence to prove " +
                  "my point.  Here is another sentence. " +
                  "Here comes the sun, do de do de do.\n" +
                  "    This is a new paragraph.\n" +
                  "    This is another newer, longer, better " +
                  "paragraph.  It is coming to an end, " +
                                    "unfortunately.");

            label.SingleLineMode = false;
            label.Justify = Justification.Fill;
            label.Wrap = true;
            frame.Add(label);

            Widget = frame;
        }
    }
}
